all=main
lib=main.o get-page.o http-loader.o
cflags = -std=c++11 -g -Wall
all:$(all) $(lib)
main: $(lib)
	g++ $(lib) -o main
main.o: main.cpp get-page.hh http-loader.hh
	g++ main.cpp -c $(cflags)
get-page.o: get-page.cpp get-page.hh
	g++ get-page.cpp -c $(cflags)
http-loader.o: http-loader.cpp http-loader.hh
	g++ http-loader.cpp -c $(cflags)
clean:
	rm $(lib) $(all) -rRf